<?php
/*
 .htaccess
 RewriteEngine on
RewriteRule !\.(js|ico|txt|gif|jpg|png|css)$ dispatcher.php
 */

require_once 'Sb/Cache.php';
$filePath = isset($_SERVER['REQUEST_URI']) ? ltrim($_SERVER['REQUEST_URI'],'/') : '';
$filePathArr = explode('?', $filePath);
if(is_array($filePathArr) && isset($filePathArr[0]))
	$filePath = $filePathArr[0];
if($filePath && 'dispatcher.php' != $filePath)
	require_once $filePath;
else 
	require_once 'index.php';